package com.example.demo.mapper;

import com.example.demo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-03-09
 * Time: 10:49
 */
@Mapper
public interface UserMapper {
    //根据user表的id 查询 user 和 role的信息
    public User getUserAndRole(@Param("id") Integer id);
}
